Package | hl7.fhir.uv.xver |
Type | StructureMap |
Id | Id |
FHIR Version | R5 |
Source | http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-MedicationAdministration3to2.html |
Url | http://hl7.org/fhir/StructureMap/MedicationAdministration3to2 |
Version | 0.1.0 |
Status | active |
Date | 2024-02-22T03:16:50+00:00 |
Name | MedicationAdministration3to2 |
Title | MedicationAdministration Transforms: R3 to R2 |
Experimental | False |
Realm | uv |
Authority | hl7 |
Description | MedicationAdministrationTransformsR3toR2 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
/// url = 'http://hl7.org/fhir/StructureMap/MedicationAdministration3to2' /// name = 'MedicationAdministration3to2' /// title = 'MedicationAdministration Transforms: R3 to R2' /// status = 'active' uses "http://hl7.org/fhir/3.0/MedicationAdministration" alias MedicationAdministration as source uses "http://hl7.org/fhir/1.0/MedicationAdministration" alias MedicationAdministrationR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group MedicationAdministration(source src : MedicationAdministration, target tgt : MedicationAdministrationR2) extends DomainResource <<type+>> { src.identifier -> tgt.identifier "MedicationAdministration-identifier"; src.status -> tgt.status "MedicationAdministration-status"; src.subject -> tgt.patient "MedicationAdministration-patient"; src.performer as vs0 then mAdPerformer(vs0, tgt) "MedicationAdministration-performer"; src.context -> tgt.encounter "MedicationAdministration-encounter"; src.prescription -> tgt.prescription "MedicationAdministration-prescription"; src.notGiven -> tgt.wasNotGiven "MedicationAdministration-notGiven"; src.reasonNotGiven -> tgt.reasonNotGiven "MedicationAdministration-reasonNotGiven"; src.effective -> tgt.effectiveTime "MedicationAdministration-effectiveTime"; src.medication -> tgt.medication "MedicationAdministration-medication"; src.device -> tgt.device "MedicationAdministration-device"; src.note only_one -> tgt.note "MedicationAdministration-note"; src.dosage as vs0 -> tgt.dosage as vt0 then mAdDosage(vs0, vt0) "MedicationAdministration-dosage"; } group mAdPerformer(source src, target tgt) extends BackboneElement { src.actor -> tgt.practitioner "MedicationAdministration-performer-actor"; } group mAdDosage(source src : MedicationAdministrationR2, target tgt : MedicationAdministration) extends BackboneElement { src.text -> tgt.text "dosage-text"; src.site -> tgt.site "dosage-site"; src.route -> tgt.route "dosage-route"; src.method -> tgt.method "dosage-method"; src.dose -> tgt.quantity "dosage-dose"; src.rate where $this is Ratio -> tgt.rate "dosage-rate-Ratio"; }
{
"resourceType" : "StructureMap",
"id" : "MedicationAdministration3to2",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/MedicationAdministration3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'MedicationAdministration3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'MedicationAdministration Transforms: R3 to R2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/MedicationAdministration<span style=\"color: navy\">" </span><b>alias </b>MedicationAdministration <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/MedicationAdministration<span style=\"color: navy\">" </span><b>alias </b>MedicationAdministrationR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>MedicationAdministration<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationAdministration, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationAdministrationR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"MedicationAdministration-identifier"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"MedicationAdministration-status"</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.patient <i>"MedicationAdministration-patient"</i><span style=\"color: navy\">;</span>\r\n src.performer<b> as </b><span style=\"color: maroon\">vs0</span><b> then </b>mAdPerformer<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"MedicationAdministration-performer"</i><span style=\"color: navy\">;</span>\r\n src.context<span style=\"color: navy\"><b> -> </b></span>tgt.encounter <i>"MedicationAdministration-encounter"</i><span style=\"color: navy\">;</span>\r\n src.prescription<span style=\"color: navy\"><b> -> </b></span>tgt.prescription <i>"MedicationAdministration-prescription"</i><span style=\"color: navy\">;</span>\r\n src.notGiven<span style=\"color: navy\"><b> -> </b></span>tgt.wasNotGiven <i>"MedicationAdministration-notGiven"</i><span style=\"color: navy\">;</span>\r\n src.reasonNotGiven<span style=\"color: navy\"><b> -> </b></span>tgt.reasonNotGiven <i>"MedicationAdministration-reasonNotGiven"</i><span style=\"color: navy\">;</span>\r\n src.effective<span style=\"color: navy\"><b> -> </b></span>tgt.effectiveTime <i>"MedicationAdministration-effectiveTime"</i><span style=\"color: navy\">;</span>\r\n src.medication<span style=\"color: navy\"><b> -> </b></span>tgt.medication <i>"MedicationAdministration-medication"</i><span style=\"color: navy\">;</span>\r\n src.device<span style=\"color: navy\"><b> -> </b></span>tgt.device <i>"MedicationAdministration-device"</i><span style=\"color: navy\">;</span>\r\n src.note only_one<span style=\"color: navy\"><b> -> </b></span>tgt.note <i>"MedicationAdministration-note"</i><span style=\"color: navy\">;</span>\r\n src.dosage<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.dosage<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>mAdDosage<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>"MedicationAdministration-dosage"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mAdPerformer<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.actor<span style=\"color: navy\"><b> -> </b></span>tgt.practitioner <i>"MedicationAdministration-performer-actor"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>mAdDosage<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>MedicationAdministrationR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>MedicationAdministration<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.text<span style=\"color: navy\"><b> -> </b></span>tgt.text <i>"dosage-text"</i><span style=\"color: navy\">;</span>\r\n src.site<span style=\"color: navy\"><b> -> </b></span>tgt.site <i>"dosage-site"</i><span style=\"color: navy\">;</span>\r\n src.route<span style=\"color: navy\"><b> -> </b></span>tgt.route <i>"dosage-route"</i><span style=\"color: navy\">;</span>\r\n src.method<span style=\"color: navy\"><b> -> </b></span>tgt.method <i>"dosage-method"</i><span style=\"color: navy\">;</span>\r\n src.dose<span style=\"color: navy\"><b> -> </b></span>tgt.quantity <i>"dosage-dose"</i><span style=\"color: navy\">;</span>\r\n src.rate<b> where </b>$this is Ratio<span style=\"color: navy\"><b> -> </b></span>tgt.rate <i>"dosage-rate-Ratio"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/MedicationAdministration3to2",
"version" : "0.1.0",
"name" : "MedicationAdministration3to2",
"title" : "MedicationAdministration Transforms: R3 to R2",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "MedicationAdministrationTransformsR3toR2",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/MedicationAdministration",
"mode" : "source",
"alias" : "MedicationAdministration"
},
{
"url" : "http://hl7.org/fhir/1.0/MedicationAdministration",
"mode" : "target",
"alias" : "MedicationAdministrationR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "MedicationAdministration",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "MedicationAdministration",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "MedicationAdministrationR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "MedicationAdministration-identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-patient",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-performer",
"source" : [
{
"context" : "src",
"element" : "performer",
"variable" : "vs0"
}
],
"dependent" : [
{
"name" : "mAdPerformer",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "tgt"
}
]
}
]
},
{
"name" : "MedicationAdministration-encounter",
"source" : [
{
"context" : "src",
"element" : "context",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "encounter",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-prescription",
"source" : [
{
"context" : "src",
"element" : "prescription",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "prescription",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-notGiven",
"source" : [
{
"context" : "src",
"element" : "notGiven",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "wasNotGiven",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-reasonNotGiven",
"source" : [
{
"context" : "src",
"element" : "reasonNotGiven",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonNotGiven",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-effectiveTime",
"source" : [
{
"context" : "src",
"element" : "effective",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "effectiveTime",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-medication",
"source" : [
{
"context" : "src",
"element" : "medication",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "medication",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-device",
"source" : [
{
"context" : "src",
"element" : "device",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "device",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-note",
"source" : [
{
"context" : "src",
"element" : "note",
"listMode" : "only_one",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "note",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "MedicationAdministration-dosage",
"source" : [
{
"context" : "src",
"element" : "dosage",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "dosage",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "mAdDosage",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
}
]
},
{
"name" : "mAdPerformer",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "MedicationAdministration-performer-actor",
"source" : [
{
"context" : "src",
"element" : "actor",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "practitioner",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "mAdDosage",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "MedicationAdministrationR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "MedicationAdministration",
"mode" : "target"
}
],
"rule" : [
{
"name" : "dosage-text",
"source" : [
{
"context" : "src",
"element" : "text",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "text",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-site",
"source" : [
{
"context" : "src",
"element" : "site",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "site",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-route",
"source" : [
{
"context" : "src",
"element" : "route",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "route",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-method",
"source" : [
{
"context" : "src",
"element" : "method",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "method",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-dose",
"source" : [
{
"context" : "src",
"element" : "dose",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "quantity",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "dosage-rate-Ratio",
"source" : [
{
"context" : "src",
"element" : "rate",
"variable" : "vvv",
"condition" : "$this is Ratio"
}
],
"target" : [
{
"context" : "tgt",
"element" : "rate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.